TimeRange

public final class TimeRange

A range between two points in UTC Unix Epoch time.

Since

8.8.0

Properties

Link copied to clipboard
public final static TimeRange FULL
The maximum allowed TimeRange between 1970-01-01T00:00:00Z and 9999-12-31T23:59:59Z.

Functions

Link copied to clipboard
public static TimeRange between(Timestamp start, Timestamp end)
Creates TimeRange between two points in time.
Link copied to clipboard
public Timestamp end()
Returns the end point of the time range.
Link copied to clipboard
public Timestamp start()
Returns the start point of the time range.
Link copied to clipboard
public static TimeRange startingFrom(Timestamp start)
Creates TimeRange from the start point and to 9999-12-31T23:59:59Z.
Link copied to clipboard
public static TimeRange upTo(Timestamp end)
Creates TimeRange from 1970-01-01T00:00:00Z and to the end point.